define(function(require){
	//var $ = require("jquery");
	var justep = require("$UI/system/lib/justep");
	
	var Model = function(){
		this.callParent();
	};
	
	Model.prototype.okBtnClick = function(event){
		var m = this.comp('windowContainer').getInnerModel();
		if(m){
			var row = m.getSelected();
			if(row){
				this.owner.send(row);
				this.owner.close();
				return;
			}
		}
		justep.Util.hint("请选择数据");
	};
	
	return Model;
});